<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<body>
<h2>@DateTimeFormat + @JsonFormat</h2>

@DateTimeFormat前端转后端, @JsonFormat后端转前端,@NumberFormat


    <form:form modelAttribute="student" method="post" action="" >
        <table>
            <tr>
                <td>生日:</td>
                <td><form:input path="birthday"/></td>
            </tr>
            <tr>
                <td>货币numberCurrency:</td>
                <td><form:input path="numberCurrency"/></td>
            </tr>
            <tr>
                <td>默认numberDefault:</td>
                <td><form:input path="numberNumber"/></td>
            </tr>
            <tr>
                <td>数字numberNumber:</td>
                <td><form:input path="numberDefault"/></td>
            </tr>
            <tr>
                <td>百分比numberPercent:</td>
                <td><form:input path="numberPercent"/></td>
            </tr>
            <tr>
                <td>pattern numberPattern:</td>
                <td><form:input path="numberPattern"/></td>
            </tr>
        </table>
    </form:form>

</body>
</html>
